package cn.angleline.cloudhub.easbi.eas.entity

import java.sql.Timestamp
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

@Entity
@Table(name = "T_ORG_BASEUNIT")
data class TOrgBaseUnit(
        @Column(name = "FPARTHRID")
        val fparthrid: String? = null,

        @Column(name = "FISHRORGUNIT")
        val fishrorgunit: Int? = null,

        @Id
        @Column(name = "FID")
        val fid: String? = null,

        @Column(name = "FNAME_L1")
        val fnameL1: String? = null,

        @Column(name = "FNAME_L2")
        val fnameL2: String? = null,

        @Column(name = "FNAME_L3")
        val fnameL3: String? = null,

        @Column(name = "FNUMBER")
        val fnumber: String? = null,

        @Column(name = "FDESCRIPTION_L1")
        val fdescriptionL1: String? = null,

        @Column(name = "FDESCRIPTION_L2")
        val fdescriptionL2: String? = null,

        @Column(name = "FDESCRIPTION_L3")
        val fdescriptionL3: String? = null,

        @Column(name = "FSIMPLENAME")
        val fsimplename: String? = null,

        @Column(name = "FISLEAF")
        val fisleaf: Int? = null,

        @Column(name = "FLEVEL")
        val flevel: Int? = null,

        @Column(name = "FLONGNUMBER")
        val flongnumber: String? = null,

        @Column(name = "FISGROUPING")
        val fisgrouping: Int? = null,

        @Column(name = "FEFFECTDATE")
        val feffectdate: Timestamp? = null,

        @Column(name = "FINVALIDDATE")
        val finvaliddate: Timestamp? = null,

        @Column(name = "FISFREEZE")
        val fisfreeze: Int? = null,

        @Column(name = "FISCOMPANYORGUNIT")
        val fiscompanyorgunit: Int? = null,

        @Column(name = "FISADMINORGUNIT")
        val fisadminorgunit: Int? = null,

        @Column(name = "FISSALEORGUNIT")
        val fissaleorgunit: Int? = null,

        @Column(name = "FISPURCHASEORGUNIT")
        val fispurchaseorgunit: Int? = null,

        @Column(name = "FISSTORAGEORGUNIT")
        val fisstorageorgunit: Int? = null,

        @Column(name = "FISPROFITORGUNIT")
        val fisprofitorgunit: Int? = null,

        @Column(name = "FISCOSTORGUNIT")
        val fiscostorgunit: Int? = null,

        @Column(name = "FISCU")
        val fiscu: Int? = null,

        @Column(name = "FISUNION")
        val fisunion: Int? = null,

        @Column(name = "FCREATORID")
        val fcreatorid: String? = null,

        @Column(name = "FCREATETIME")
        val fcreatetime: Timestamp? = null,

        @Column(name = "FLASTUPDATEUSERID")
        val flastupdateuserid: String? = null,

        @Column(name = "FLASTUPDATETIME")
        val flastupdatetime: Timestamp? = null,

        @Column(name = "FCONTROLUNITID")
        val fcontrolunitid: String? = null,

        @Column(name = "FPARENTID")
        val fparentid: String? = null,

        @Column(name = "FPARTCTRLID")
        val fpartctrlid: String? = null,

        @Column(name = "FPARTADMINID")
        val fpartadminid: String? = null,

        @Column(name = "FPARTFIID")
        val fpartfiid: String? = null,

        @Column(name = "FPARTSALEID")
        val fpartsaleid: String? = null,

        @Column(name = "FPARTSTORAGEID")
        val fpartstorageid: String? = null,

        @Column(name = "FPARTPURCHASEID")
        val fpartpurchaseid: String? = null,

        @Column(name = "FPARTCOSTCENTERID")
        val fpartcostcenterid: String? = null,

        @Column(name = "FPARTPROFITCENTERID")
        val fpartprofitcenterid: String? = null,

        @Column(name = "FISSTART")
        val fisstart: Int? = null,

        @Column(name = "FISOUSEALUP")
        val fisousealup: Int? = null,

        @Column(name = "FPARTUNIONGROUPID")
        val fpartuniongroupid: String? = null,

        @Column(name = "FDISPLAYNAME_L1")
        val fdisplaynameL1: String? = null,

        @Column(name = "FDISPLAYNAME_L2")
        val fdisplaynameL2: String? = null,

        @Column(name = "FDISPLAYNAME_L3")
        val fdisplaynameL3: String? = null,

        @Column(name = "FCODE")
        val fcode: String? = null,

        @Column(name = "FENGLISHNAME")
        val fenglishname: String? = null,

        @Column(name = "FVERSIONNUMBER")
        val fversionnumber: String? = null,

        @Column(name = "FMAINTAINCUID")
        val fmaintaincuid: String? = null,

        @Column(name = "FISASSISTANTORG")
        val fisassistantorg: Int? = null,

        @Column(name = "FMAINORGID")
        val fmainorgid: String? = null,

        @Column(name = "FACCOUNTSCHEMEID")
        val faccountschemeid: String? = null,

        @Column(name = "FISTRANSPORTORGUNIT")
        val fistransportorgunit: Int? = null,

        @Column(name = "FPARTTRANSPORTID")
        val fparttransportid: String? = null,

        @Column(name = "FISQUALITYORGUNIT")
        val fisqualityorgunit: Int? = null,

        @Column(name = "FPARTQUALITYID")
        val fpartqualityid: String? = null,

        @Column(name = "FORGTYPESTR")
        val forgtypestr: String? = null
)